<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:p="http://primefaces.org/ui"
    template="/WEB-INF/templates/template.xhtml">
    <ui:define name="content">
        <h:form>
        <div style="width : 800px; font-size: 10pt; align: center;" >
        <br />
        <p:panel>
        <f:facet name="header">User Login</f:facet>
            <h:panelGrid columns="2" >
            <p:spacer height="20"/><p:spacer />
                <h:outputText for="name" value="Name" />
                <p:inputText id="name" value="#{loginBean.name}" />
                <h:outputText for="password" value="Password" />
                <p:password id="password" value="#{loginBean.password}"/>
                <p:spacer height="20"/><p:spacer />
            <p:spacer width="50"/><p:commandButton value="Login" action="#{loginBean.login}" />
            </h:panelGrid>
            </p:panel>
            </div>
        </h:form>
    </ui:define>
</ui:composition>